import axios from 'axios'
// 用户列表
export const reqUserList = (data)=>
axios({
  url:'/api/crm/user-v/condition',
  method:'get',
  params:data
});
// 添加员工
export const reqAddStaffy = (data)=>
axios({
  url:'/api/crm/user/insert',
  method:'post',
  data:data
});
// 删除员工
export const deleteStaffy = (data)=>
axios({
  url:'/api/crm/user/delete',
  method:'delete',
  data:data
});
// 修改客户
export const updateStaffy  = (data)=>
axios({
  url:'/api/crm/user/update',
  method:'put',
  data:data
});
//查询部门
export const reqDictList = (data)=>
axios({
  url:'/api/crm/dict/condition',
  method:'get',
  params:data
});
// 修改密码
export const updatePassword  = (data)=>
axios({
  url:'/api/crm/user/updatePassword',
  method:'post',
  data:data
});